"use strict";
cc._RF.push(module, 'df13dqBPXRCVKhqjtSXp8UO', 'SimpleCommand');
// libs/lightMVC/core/command/SimpleCommand.ts

"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * 命令基类
 */
var BaseCommand_1 = require("../base/BaseCommand");
var Facade_1 = require("../Facade");
var CommandManager_1 = require("../manager/CommandManager");
var SimpleCommand = /** @class */ (function (_super) {
    __extends(SimpleCommand, _super);
    function SimpleCommand() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    /**
     * 获取model对象
     * @param {{new (): BaseModel}} model
     */
    SimpleCommand.prototype.getModel = function (model) {
        return Facade_1.Facade.getInstance().getModel(model);
    };
    /**
     * 执行命令
     * @param {{new (): BaseCommand}} command 命令对象
     * @param {Object} body 命令参数
     */
    SimpleCommand.prototype.sendCmd = function (command, body) {
        CommandManager_1.default.getInstance().__executeCommand__(command, body);
    };
    /**
     * 撤销命令
     * @param {{new (): BaseCommand}} command 命令对象
     * @param {Object} body 命令参数
     */
    SimpleCommand.prototype.undoCmd = function (command, body) {
        Facade_1.Facade.getInstance().__undoCommand__(command, body);
    };
    SimpleCommand.prototype.sendNoti = function () {
    };
    return SimpleCommand;
}(BaseCommand_1.default));
exports.default = SimpleCommand;

cc._RF.pop();